-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IBX-4123: [Backport] Added /languages
and /languages/{code}
endpoints
#107
Conversation
…ints (cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
…ints (cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
…ints (cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
…ints (cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
…ints (cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
…ints (cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
…ints (cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
…ints (cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
namespace EzSystems\EzPlatformRest\Server\Controller; | ||
|
||
use eZ\Publish\API\Repository\LanguageService; | ||
use eZ\Publish\API\Repository\Values\Content\Language as ApiLanguage; | ||
use EzSystems\EzPlatformRest\Server\Controller as RestController; | ||
use EzSystems\EzPlatformRest\Server\Values\LanguageList; | ||
use Traversable; | ||
|
||
final class Language extends RestController |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
legacy namespaces for new classes are technically not allowed after rebranding due to BC policy. I see 2 options here:
either use Ibexa
namespace or make the class internal so we don't have to keep BC (we don't do it for controller classes anyway, but at least it would be more clear that way).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with standalone API calls and with the Ibexa Connect v3 app, looks good!
v3.3.0
Warning
When merging up, do not apply those changes. They already exist downstream.
Needed due to dependency in Ibexa Connect, as part of Content creation and other modules.
(cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
TODO:
$ composer fix-cs
).